<%-- 
    Document   : index
    Created on : 18/06/2011, 11:21:20
    Author     : flavioam
--%>

<%@page import="br.unesp.demac.bcc.soo.bean.Pessoa"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://static.jquery.com/ui/css/base.css" type="text/css" media="all" />
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-lightness/jquery-ui.css" type="text/css" media="all" />
<link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />


<script>
    
    $(document).ready(function(){

        $("#mytabs").tabs(); 
    });
    
</script>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%            
            
            Pessoa p = (Pessoa) session.getAttribute("pessoa");
        %>
        <title>Locadora Online</title>
    </head>
    <body>

        <h1 style="padding-top: 30px;padding-left: 40px;color: white;">Locadora On line</h1>

        <div id="mytabs">
            <ul>
                <li><a href="#fragment-1"><span>Meus Dados</span></a></li>
                <li><a href="#fragment-2"><span>Meus Filmes Alugados</span></a></li>
                <li><a href="#fragment-3"><span>Meus Historico de Alugueis</span></a></li>
                <li><a href="#fragment-3"><span>Filmes Mais Alugados</span></a></li>
            </ul>
            <div id="fragment-1">

                <fieldset><legend>Cliente</legend>
                    <table>
                        <tr>
                            <td>Nome:</td>
                            <td><%=p.getNome()%></td>
                        </tr>
                        <tr>
                            <td>Cpf:</td>
                            <td><%=p.getCpf()%></td>
                        </tr>
                    </table>
                </fieldset>

                <fieldset><legend>Contato</legend>                
                    <table>
                        <tr>
                            <td>Email: </td>
                            <td><%=p.getContato().getEmail()%></td>
                        </tr>
                        <tr>
                            <td>Telefone Residencial:</td>
                            <td><%=p.getContato().getTelefoneResidencial()%></td>
                        </tr>
                        <tr>
                            <td>Telefone Comercial:</td>
                            <td><%=p.getContato().getTelefoneComercial()%></td>
                        </tr>
                        <tr>
                            <td>Telefone Celular:</td>
                            <td><%=p.getContato().getTelefoneCelular()%></td>
                        </tr>
                    </table>                    
                </fieldset>

                <fieldset><legend>Endereco</legend>                
                    <table>
                        <tr>
                            <td>Endereco: </td>
                            <td><%=p.getEndereco().getEndereco()%></td>
                        </tr>
                        <tr>
                            <td>Cidade:</td>
                            <td><%=p.getEndereco().getCidade()%></td>
                        </tr>
                        <tr>
                            <td>Estado:</td>
                            <td><%=p.getEndereco().getEstado()%></td>
                        </tr>
                    </table>                    
                </fieldset>

            </div>
            <div id="fragment-2">

            </div>            
            <div id="fragment-3">

            </div>
            <div id="fragment-4">

            </div>
        </div>

    </body>    
</html>


